package jp.co.apl.haven.ao.entity;

import net.java.ao.Entity;
import net.java.ao.OneToMany;
import net.java.ao.Preload;
import net.java.ao.schema.Table;
import net.java.ao.schema.Unique;

@Table("enquete")
@Preload("version")
public interface EnqueteEntity extends Entity {

    @Unique
    Integer getVersion();

    void setVersion(Integer version);

    @OneToMany
    CategoryEntity[] getCategories();

    @OneToMany
    BasicInfoItemEntity[] getBasicInfoItems();

}
